package com.sinosoft.ebusiness.domain.elementManage;
// 采用工具 Hibernate Tools 3.2.4.GA (sinosoft version) 生成，请勿手工修改。

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.sinosoft.ebusiness.domain.elementManage.GeProductPageViewItem;

/**
 * POJO类GePageviewItemEvent
 */
@Entity
@Table(name = "GE_PAGEVIEW_ITEM_EVENT")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class GePageviewItemEvent implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7106925373828745950L;


	/** 属性ID */
	private String eventId;


	/** 属性eventtype */
	private String eventtype;

	/** 属性execfunname */
	private String execfunname;

	/** 属性execfun */
	private String execfun;
	
	private GeProductPageViewItem geProductPageViewItem;

	/**
	 * 类GePageviewItemEvent的默认构造方法
	 */
	public GePageviewItemEvent() {
	}

	/**
	 * 属性ID的getter方法
	 */
	@Id
	@Column(name = "EVENTID")
	@GenericGenerator(name = "UUIDGenerator", strategy = "uuid.hex")
	@GeneratedValue(generator = "UUIDGenerator")
	public String getEventId() {
		return this.eventId;
	}

	/**
	 * 属性ID的setter方法
	 */
	public void setEventId(String eventId) {
		this.eventId = eventId;
	}


	/**
	 * 属性eventtype的getter方法
	 */

	@Column(name = "EVENTTYPE")
	public String getEventtype() {
		return this.eventtype;
	}

	/**
	 * 属性eventtype的setter方法
	 */
	public void setEventtype(String eventtype) {
		this.eventtype = eventtype;
	}

	/**
	 * 属性execfunname的getter方法
	 */

	@Column(name = "EXECFUNNAME")
	public String getExecfunname() {
		return this.execfunname;
	}

	/**
	 * 属性execfunname的setter方法
	 */
	public void setExecfunname(String execfunname) {
		this.execfunname = execfunname;
	}

	/**
	 * 属性execfun的getter方法
	 */

	@Column(name = "EXECFUN")
	public String getExecfun() {
		return this.execfun;
	}

	/**
	 * 属性execfun的setter方法
	 */
	public void setExecfun(String execfun) {
		this.execfun = execfun;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumns({
			@JoinColumn(name = "ITEMCODE", referencedColumnName = "ITEMCODE"),
			@JoinColumn(name = "GROUPCODE", referencedColumnName = "GROUPCODE"),
			@JoinColumn(name = "TEMPLATECODE", referencedColumnName = "TEMPLATECODE") })
	@JsonBackReference
	public GeProductPageViewItem getGeProductPageViewItem() {
		return geProductPageViewItem;
	}

	public void setGeProductPageViewItem(GeProductPageViewItem geProductPageViewItem) {
		this.geProductPageViewItem = geProductPageViewItem;
	}

}
